/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.entidades;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author JAVIER
 */
@Entity
@Table(name = "historico_premios")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "HistoricoPremios.findAll", query = "SELECT h FROM HistoricoPremios h"),
    @NamedQuery(name = "HistoricoPremios.findByApuFecha", query = "SELECT h FROM HistoricoPremios h WHERE h.apuFecha = :apuFecha"),
    @NamedQuery(name = "HistoricoPremios.findBySumPremio", query = "SELECT h FROM HistoricoPremios h WHERE h.sumPremio = :sumPremio")})
public class HistoricoPremios implements Serializable {
    private static final long serialVersionUID = 1L;
    @Size(max = 10)
    @Id
    @Column(name = "apu_fecha")
    private String apuFecha;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "sumPremio")
    private Long sumPremio;

    public HistoricoPremios() {
    }

    public String getApuFecha() {
        return apuFecha;
    }

    public void setApuFecha(String apuFecha) {
        this.apuFecha = apuFecha;
    }

    public Long getSumPremio() {
        return sumPremio;
    }

    public void setSumPremio(Long sumPremio) {
        this.sumPremio = sumPremio;
    }
    
}
